package com.cc.demo.channel;

import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;

public interface TransactionMessageInChannel {

    String TRANSACTION_COMPLETED = TransactionChannelConstant.TRANSACTION_COMPLETED;
    String TRANSACTION_FAILED = TransactionChannelConstant.TRANSACTION_FAILED;

    @Output(TRANSACTION_COMPLETED)
    MessageChannel complete();

    @Output(TRANSACTION_FAILED)
    MessageChannel fail();
}
